package org.jeecg.modules.inventoryShelfAdjust.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.inventoryShelfAdjust.entity.InventoryShelfAdjust;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 理货表
 * @Author: jeecg-boot
 * @Date:   2024-01-16
 * @Version: V1.0
 */
public interface InventoryShelfAdjustMapper extends BaseMapper<InventoryShelfAdjust> {

    @Select("select IFNULL(Count(*), 0) from inventory_shelf_adjust where DATE_FORMAT(finish_time, '%Y-%m-%d') = DATE_FORMAT(#{date}, '%Y-%m-%d')")
    Integer getShelfAdjusCount(@Param("date") Date date);
}
